class Student:
    # 可以不用定义属性，在构造方法中定义并初始化了
    # name = None
    # age = None
    # tel = None

    def __init__(self, name, age, tel):
        self.name = name
        self.age = age
        self.tel = tel
        print('\n调用了构造方法')

    def print_info(self):
        print(F'👉姓名：{self.name}')
        print(F'👉年龄：{self.age}')
        print(F'👉手机：{self.tel}')


stu1 = Student('Jagochan', 5, '15566677888')
stu1.print_info()

stu2 = Student('张国庆', 8, '16688668852')
stu2.print_info()

stu3 = Student('周杰伦', 18, '16688668666')
stu3.print_info()
